/**
 * Created by wyy on 17-7-6.
 */
angular.module('tribalc').factory('Enum',['$rootScope','$stateParams',function ($rootScope,$stateParams) {
    var locationUrl='login.html#';
    var StaffNormalLeftBarItems = [
        {
            name: '租赁管理',
            url: '/tribalc-web-apartment/img/left/base.png',
            selectUrl: '/tribalc-web-apartment/img/left/base_select.png',
            jumpUrl: locationUrl + '/company/apartmentmanage',
            jumpInfoUrl: locationUrl + 'company/apartmentmanage'

        }
        // {
        //     name: '租赁管理',
        //     url: '/tribalc-web-apartment/img/left/base.png',
        //     selectUrl: '/tribalc-web-apartment/img/left/base_select.png',
        //     jumpUrl: locationUrl + '/company/add_rentagreement'
        // },
        // {
        //     name: '租赁管理',
        //     url: '/tribalc-web-apartment/img/left/base.png',
        //     selectUrl: '/tribalc-web-apartment/img/left/base_select.png',
        //     jumpUrl: locationUrl + 'company/equipment'
        // },
        // {
        //     name: '租赁管理',
        //     url: '/tribalc-web-apartment/img/left/base.png',
        //     selectUrl: '/tribalc-web-apartment/img/left/base_select.png',
        //     jumpUrl: locationUrl + 'company/locks'
        // }
    ];

    var AvailabilityTitleItems = [
        {
            name: '房源管理',
            jumpUrl: locationUrl + 'company/apartmentmanage'
        },
        {
            name: '房源信息',
            jumpUrl: locationUrl + '/company/'
        }
    ];

    var HeadBarinformationItems=[
        {
            name:'房源信息',
            id: 'apartmentinfoNav',
            jumpUrl: locationUrl + '/company/apartmentinfo/'
        },
        {
            name:'租客协议',
            id: 'rent_agreementNav',
            jumpUrl:locationUrl +'/company/rent_agreement_detail/'
        },
        {
            name:'租金缴费',
            id: 'rent_paymentNav',
            jumpUrl:locationUrl +'/company/rent_payment/'
        },
        {
            name:'智能设备',
            id: 'smart_equipment_detailNav',
            jumpUrl:locationUrl + '/company/smart_equipment_detail/'
        }
    ];

    var rentPayCycle = ['1','2','3','4','5','6','7','8','9','10','11','12'];

    var Sex = {
        "UNKNOWN": '\u672a\u77e5\u000d',  /* 未知 */
        "FEMALE": '\u5973',   /* 女 */
        "MALE":'\u7537'  /* 男 */
    };

    var SexFormat = function () {
        var sex = {};
        for (var key in Sex) {
            sex[Sex[key]] = key;
        }
        return sex;
    }();

    var LockList = {1:"大门锁",2:"内门锁"};


     return {
         /*性别*/
         Sex:Sex,
         SexFormat:SexFormat,
         /* 物业公司企业侧栏选项 */
         StaffNormalLeftBarItems: StaffNormalLeftBarItems,
         /*左侧房源选项*/
         AvailabilityTitleItems: AvailabilityTitleItems,
         /*房源信息导航栏*/
         HeadBarinformationItems: HeadBarinformationItems,

         rentPayCycle:rentPayCycle,

         LockList:LockList
     };



}]);